#include "raytracer.h"

#include "stdbool.h"
#include "stdio.h"
#include "time.h"
#include "assert.h"

void processf1(unsigned int x, unsigned int y, pixelRGBA32* p)
{
	p->red = rand()%255;
	p->blue = rand()%255;
	p->green = rand()%255;
	
}

int main()
{
	srand(time(NULL));
	
	int f1 = framebufferCreate(RGBA32, 1024, 768);
	framebufferRegisterCallback(f1, processf1);
	framebufferProcess(f1, LINE);

	//imageWrite(framebufferGetFramebuffer(f1), PPM, "pixels.ppm");

	return 0;
}
